package structural.decorator.v2;

/**
 * @Author: 蔡翔
 * @Date: 2019/12/9 11:15
 * @Version 1.0
 */
public class EggDecorator extends AbstractDecorator {
    public EggDecorator(ABatterCake aBatterCake) {
        super(aBatterCake);
    }

    @Override
    protected void deSomething() {

    }

    @Override
    protected String getDesc() {
        return super.getDesc()+"加一个鸡蛋";
    }

    @Override
    protected int cost() {
        return super.cost()+1;
    }
}
